﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AtletIS.Shared.Entities
{
    public class DisciplineListEntity : EntityBase
    {
        public string Description { get; set; }

        public int AutoOrder { get; set; }
        public int Order { get; set; }
        public int SecondaryOrder { get; set; }

        public int ParentId { get; set; }
        public int MeasurementId { get; set; }
        public int CompetitionId { get; set; }
        public int DisciplineId { get; set; }
        public int CategoryId { get; set; }

        public DateTime StartTime { get; set; }
        public DateTime? RealStartTime { get; set; }
        public DateTime? RealEndTime { get; set; }

        public int Status { get; set; }
        public int DisciplineCode { get; set; }
        public int ResultCode { get; set; }
        
        public string Params { get; set; }
        public bool Relay { get; set; }

        public double? Wind { get; set; }

        public bool IsFinal
        {
            get
            {
                if (!string.IsNullOrEmpty(this.Params) && this.Params.ToUpper() == "F")
                    return true;

                return false;
            }
        }
    }
}
